| Star Fighter 3000
|  FEDNET Software 1994
| Release 3

Obey <Obey$Dir>.!Boot

| Check OS and window manager version
RMEnsure UtilityModule 3.10 Error "This application requires RISC OS 3.10 or later"
RMEnsure WindowManager 3.80 Error "This application requires WindowManager 3.80 or later"

| Ensure System resources have been seen by the filer
If "<System$Path>" = "" Then Error "System resources cannot be found"
IF "<Wimp$ScrapDir>" = "" Then Error "Scrap directory cannot be found"

| Module to support OS_SynchroniseCodeAreas pre OS 3.7
RMEnsure UtilityModule 3.70 RMEnsure CallASWI 0.01 RMLoad System:Modules.CallASWI
RMEnsure UtilityModule 3.70 RMEnsure CallASWI 0.01 Error "This application requires CallASWI 0.01 or later"

| Toolbox modules
| Works with OS 3.7 ROM versions, except needs later Window, DCS & Iconbar
RMEnsure FilterManager 0.09 RMLoad System:Modules.FilterMgr
RMEnsure FilterManager 0.09 Error "This application requires FilterManager 0.09 or later"
RMEnsure Toolbox    0.00  RMLoad System:Modules.Toolbox.Toolbox
RMEnsure Toolbox    1.36  Error "This application requires Toolbox 1.36 or later"
RMEnsure Window     0.00  RMLoad System:Modules.Toolbox.Window
RMEnsure Window     1.59  Error "This application requires Window 1.59 or later"
RMEnsure Menu       0.00  RMLoad System:Modules.Toolbox.Menu
RMEnsure Menu       0.24  Error "This application requires Menu 0.24 or later"
RMEnsure Iconbar    0.00  RMLoad System:Modules.Toolbox.Iconbar
RMEnsure Iconbar    1.18  Error "This application requires Iconbar 1.18 or later"
RMEnsure ProgInfo   0.00  RMLoad System:Modules.Toolbox.ProgInfo
RMEnsure ProgInfo   0.09  Error "This application requires ProgInfo 0.09 or later"
RMEnsure SaveAs     0.00  RMLoad System:Modules.Toolbox.SaveAs
RMEnsure SaveAs     0.12  Error "This application requires SaveAs 0.12 or later"
RMEnsure Scale      0.00  RMLoad System:Modules.Toolbox.Scale
RMEnsure Scale      0.11  Error "This application requires Scale 0.11 or later"
RMEnsure DCS        0.00  RMLoad System:Modules.Toolbox.DCS_Quit
RMEnsure DCS        1.08  Error "This application requires DCS 1.08 or later"

| Game support modules
RMEnsure FDComp      1.03 RMLoad <Star3000$Dir>.Code.FDComp
RMEnsure SFX_Handler 2.30 RMLoad <Star3000$Dir>.Code.SFX_Handle

| Set paths to read configuration and levels data
If "<Choices$Path>" = "" Then Set Star3000Choices$Path <Star3000$Dir>.Choices.,<Star3000$Dir>.Defaults. Else Set Star3000Choices$Path Choices:Star3000.,<Star3000$Dir>.Defaults.
Set Star3000Levels$Path <Star3000$Dir>.LandScapes.

WimpSlot -min 1752k
WimpSlot -min 1444k -max 1444k

Run <Star3000$Dir>.!RunImage